// 头像上传
import request from '@/utils/request'

export const uploadImag = (file) => {
  return request({
    url: '/uploads',
    method: 'post',
    file
  })
}

// 发送短信
export const sendsms = (data) => {
  return request({
    url: '/sendsms',
    method: 'post',
    data
  })
}

// 用户注册接口
export const register = (data) => {
  return request({
    url: '/register',
    method: 'post',
    data
  })
}
